package com.twu.biblioteca;


public class User {
    private final int libraryNumber;
    private final String password;
    private String name;
    private String email;
    private int phone;

    public User(int libraryNumber, String password) {
        this.libraryNumber = libraryNumber;
        this.password = password;
    }

    public User(int libraryNumber,String password, String name, String email, int phone){
        this.libraryNumber = libraryNumber;
        this.password = password;
        this.name = name;
        this.email = email;
        this.phone = phone;
    }

    public int getLibraryNumber() {
        return libraryNumber;
    }

    public String getPassword() {
        return this.password;
    }

    public boolean checkPassword(String enteredPassword) {
        return this.password.equals(enteredPassword);
    }

    public String getUserInformation() {
        return "Name: "+name+"\nEmail: "+email+"\nPhone number: "+phone;
    }
}

